<div class="m">
    <div class="toolbar-list">
        <ul>
            <li class="button" >
                <br clear="all"/>
                <a href="#" id="save_article" class="toolbar">
                    <span class="icon-32-apply"></span>
                    Сохранить
                </a>
            </li>

            <li class="button">
                <br clear="all"/>
                <a href="/index.php/news/admin" class="toolbar">
                    <span class="icon-32-cancel"></span>
                    Отменить
                </a>
            </li>
        </ul>
        <br clear="all"/>
    </div>
    <div class="pagetitle icon-48-article-add"><h3>Менеджер материалов: Редактировать новость</h3></div>
</div>

<div class="article_edit">
    <div class="width-60">
        <form action="<?php echo base_url();?>index.php/news/admin/articleSave" id="articleForm" method="post">
            <input type="hidden" value="save" name="type">
            <input type="hidden" value="<?php echo $article['id'] ?>" name="hash">
            <fieldset class="adminform">
                <legend>Создать материал</legend>
                <ul class="adminformlist">
                    <li>
                        <label id="jform_title-lbl" for="jform_title" class="hasTip required" title="">
                            Заголовок
                        </label>
                        <input type="text" id="name" name="name"
                               value="<?php echo $article['name'] != '' ? $article['name'] : ''?>" size="30">
                    <li>
                        <br clear="all"/>
                        <label id="jform_state-lbl" for="jform_state" class="hasTip" title="">Состояние</label>
                    <select class="inputbox" size="1">
                        <option value="1" selected="selected">Опубликовано</option>
                        <option value="0">Не опубликовано</option>
                        <option value="2">В архиве</option>
                        <option value="-2">В корзине</option>
                    </select>
                    </li>
                </ul>
                <br clear="all"/>
                <label id="jform_articletext-lbl" class="hasTip" title="">Текст материала</label>
                <br>
                <textarea class="ckeditor" name="content">
                    sad
                    <?php echo $article['news'] != '' ? $article['news'] : ''?>
                </textarea>
            </fieldset>
        </form>
    </div>
</div>